import { connect } from 'react-redux';
import IndexContent from '../../components/indexContent'
import { recommendSongsAction } from '../../actions/indexContent'

const mapStateToProps = (state,ownProps) =>{
    return {
        recommendSong: state.recommendSongsReducer || {},
    }
};

const mapDispatchToProps = (dispatch,ownProps)=>{
    return {
        recommendSongFunc: (data) => {
            dispatch( recommendSongsAction(data) )
        }
    };
};

export default connect(mapStateToProps,mapDispatchToProps)(IndexContent);

